
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%@page import="com.tss.util.*"%>
<%@page import="com.jedi.*"%>
<%@page import="com.store.*"%>
<%@page import="java.util.*"%>
<%@page import="java.text.*"%>
<%@include file="../global_var.jsp"%>
<%@include file="../check_login.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
User just_user = (User)session.getAttribute("LoginUser");

ArticleMgr articleMgr = new ArticleMgr();
String user_id = ParamUtils.getParameter(request,"user_id","");
List list = null;
%>
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<link href="style/main.css" rel="stylesheet" type="text/css">
<script language="javascript" src="js/common.js"></script>
<script language="javascript">
function clk_goback() {
	location.href = "know_article_stat.jsp";
}
</script>
</head>
<body 
	leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td style="padding-left:25px;">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td height="31" valign="top" background="images/title_bk_01.gif"
					style="padding-left:10px;padding-top:6px;">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td style="color:#FFFFFF;font-size:13px;" width="50%"><b>知识库</b>
						-&gt; <b>文章统计</b></td>
						<td align="right" style="padding-right:10px;"><span
							onclick="clk_goback();"
							style="cursor:hand;color:#FFFFFF;font-size:12px;text-de--ation: underline;">返回</span>
						</td>
					</tr>
				</table>
				</td>
			</tr>
			<tr>
				<td height="100" align="right" valign="top"
					style="padding-top:12px;padding-bottom:10px;padding-right:5px;">
				<table width="100%" border="0" cellpadding="0" cellspacing="1"
					bgcolor="#FFFFFF">
					<tr bgcolor="#858585" align="center">
						<td height="24" width="35%" style="color:#FFFFFF;"><b>文档标题</b></td>
						<td width="20%" style="color:#FFFFFF;"><b>发布时间</b></td>
						<td width="15%" style="color:#FFFFFF;"><b>作者</b></td>
						<td width="15%" style="color:#FFFFFF;"><b>所属分类</b></td>
						<td width="15%" style="color:#FFFFFF;"><b>点击数</b></td>
					</tr>
					<%
              String otherSQL = " and a.author_id = '" + user_id + "'";
              String orderField = "a.category_id,issue_time desc";
              articleMgr.setTopNum(-1);
              list = articleMgr.get(otherSQL,orderField);
              if (list != null && list.size() > 0) {
              	String bgColor[] = {"#EDEDF0","#D7D7DB"};
              	for(int i=0;i<list.size();i++) {
              		Article item = (Article)list.get(i);
              %>
					<tr bgcolor="<%=bgColor[i%2]%>" align="center">
						<td height="24"><a
							href="knowledge_mgt/know_article_show.jsp?article_id=<%=item.getId()%>"><%=item.getArticleTitle()%></a></td>
						<td><%=item.getIssueTime()%></td>
						<td><%=item.getAuthorName()%></td>
						<td><%=item.getCategory().getCategoryName()%></td>
						<td><%=item.getHit()%></td>
					</tr>
					<%}}%>
				</table>
				</td>
			</tr>
		</table>
		</td>
	</tr>
</table>
</body>
</html>
